package com.hyt.it.ogt.kq.service.gov.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 * 考点信息表
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mb_office_place")
@ApiModel(value="MbOfficePlace对象", description="考点信息表")
public class OfficePlace extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构id")
    private String officeId;

    @ApiModelProperty(value = "部门id")
    private String deptId;

    @NotBlank(message = "考点编号不能为空")
    @Size(max = 11,message = "考点编号长度不能大于11")
    @ApiModelProperty(value = "考点编号")
    private Integer code;

    @NotBlank(message = "考点名称不能为空")
    @Size(max = 60,message = "考点名称长度不能大于60个字符串")
    @ApiModelProperty(value = "考点名称")
    private String name;

    @NotBlank(message = "考点地址不能为空")
    @Size(max = 200,message = "考点地址长度不能大于200个字符串")
    @ApiModelProperty(value = "考点地址")
    private String address;

    @NotBlank(message = "交通指南不能为空")
    @Size(max = 200,message = "交通指南长度不能大于200个字符串")
    @ApiModelProperty(value = "交通指南")
    private String trafficGuide;

    @ApiModelProperty(value = "交通指南详情")
    private String trafficGuideInfo;

    @NotBlank(message = "联系人不能为空")
    @Size(max = 10,message = "联系人长度不能大于10个字符串")
    @ApiModelProperty(value = "联系人")
    private String linkman;

    @NotBlank(message = "联系人电话不能为空")
    @Size(max = 16,message = "联系人电话长度不能大于16个字符串")
    @ApiModelProperty(value = "联系人电话")
    private String phone;

    @NotBlank(message = "区域省必选")
    @ApiModelProperty(value = "省id")
    private String province;

    @NotBlank(message = "区域市必选")
    @ApiModelProperty(value = "市id")
    private String city;

    @NotBlank(message = "区域县区必选")
    @ApiModelProperty(value = "区县id")
    private String district;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @Size(max = 200,message = "备注长度不能大于200个字符串")
    @ApiModelProperty(value = "考点备注信息")
    private String remarks;

    @ApiModelProperty(value = "所属区域 : eg 广东省深圳市南山区")
    @TableField(exist = false)
    private String regionAddr;

    @ApiModelProperty(value = "所属机构的名称")
    @TableField(exist = false)
    private String orgName;

}
